package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.TopUpMapper;
import com.ruoyi.system.domain.TopUp;
import com.ruoyi.system.service.ITopUpService;

/**
 * 充值信息汇总Service业务层处理
 * 
 * @author ruoyi
 * @date 2023-12-27
 */
@Service
public class TopUpServiceImpl implements ITopUpService 
{
    @Autowired
    private TopUpMapper topUpMapper;

    /**
     * 查询充值信息汇总
     * 
     * @param id 充值信息汇总主键
     * @return 充值信息汇总
     */
    @Override
    public TopUp selectTopUpById(Long id)
    {
        return topUpMapper.selectTopUpById(id);
    }

    /**
     * 查询充值信息汇总列表
     * 
     * @param topUp 充值信息汇总
     * @return 充值信息汇总
     */
    @Override
    public List<TopUp> selectTopUpList(TopUp topUp)
    {
        return topUpMapper.selectTopUpList(topUp);
    }

    /**
     * 新增充值信息汇总
     * 
     * @param topUp 充值信息汇总
     * @return 结果
     */
    @Override
    public int insertTopUp(TopUp topUp)
    {
        return topUpMapper.insertTopUp(topUp);
    }

    /**
     * 修改充值信息汇总
     * 
     * @param topUp 充值信息汇总
     * @return 结果
     */
    @Override
    public int updateTopUp(TopUp topUp)
    {
        return topUpMapper.updateTopUp(topUp);
    }

    /**
     * 批量删除充值信息汇总
     * 
     * @param ids 需要删除的充值信息汇总主键
     * @return 结果
     */
    @Override
    public int deleteTopUpByIds(Long[] ids)
    {
        return topUpMapper.deleteTopUpByIds(ids);
    }

    /**
     * 删除充值信息汇总信息
     * 
     * @param id 充值信息汇总主键
     * @return 结果
     */
    @Override
    public int deleteTopUpById(Long id)
    {
        return topUpMapper.deleteTopUpById(id);
    }
}
